#import "SearchTextField.h"
@implementation SearchTextField
-(CGRect)leftViewRectForBounds:(CGRect)bounds{
    CGFloat margin = 6;
    CGFloat scale = 6 / 11.0f;
    CGFloat width = bounds.size.height * scale;
    CGFloat x = margin;
    CGFloat y = (bounds.size.height - width) / 2.0f;
    return CGRectMake(x, y, width, width);
}
- (CGRect)textRectForBounds:(CGRect)bounds {
    return CGRectInset( bounds , 16 , 0);
}
- (CGRect)editingRectForBounds:(CGRect)bounds {
    return CGRectInset( bounds , 16 , 0 );
}
@end
